<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Lesson Project: C:/Users/ttl/Documents/Lesson/Lesson_Project/T4056_Eternal_Watch/03_Firmware/Temp/User/Driver/KEY/Inc/key_driver.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Lesson Project<span id="projectnumber">&#160;Beta V1.1</span>
   </div>
   <div id="projectbrief">Course Learning Template Engineering</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6d4e12d46ad8519ff7b80e874016d102.html">User</a></li><li class="navelem"><a class="el" href="dir_81f18e0c07fff3e9102b10505e4dbf14.html">Driver</a></li><li class="navelem"><a class="el" href="dir_39b4895addedc8e7310416319f71f4e9.html">KEY</a></li><li class="navelem"><a class="el" href="dir_092581ad7089dd4933822e934b887cad.html">Inc</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#enum-members">Enumerations</a>  </div>
  <div class="headertitle"><div class="title">key_driver.h File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;stm32f4xx_hal.h&quot;</code><br />
<code>#include &quot;stm32f4xx_hal_gpio.h&quot;</code><br />
<code>#include &quot;FreeRTOS.h&quot;</code><br />
<code>#include &quot;queue.h&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for key_driver.h:</div>
<div class="dyncontent">
<div class="center"><img src="key__driver_8h__incl.png" border="0" usemap="#a_c_1_2_users_2ttl_2_documents_2_lesson_2_lesson___project_2_t4056___eternal___watch_203___firmware_2_temp_2_user_2_driver_2_k_e_y_2_inc_2key__driver_8h" alt=""/></div>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="key__driver_8h__dep__incl.png" border="0" usemap="#a_c_1_2_users_2ttl_2_documents_2_lesson_2_lesson___project_2_t4056___eternal___watch_203___firmware_2_temp_2_user_2_driver_2_k_e_y_2_inc_2key__driver_8hdep" alt=""/></div>
</div>
</div>
<p><a href="key__driver_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structkey__driver__t.html">key_driver_t</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structkey__driver__ops__t.html">key_driver_ops_t</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ac024ba8a2e4f54e21cbca3f6dbbf034b" id="r_ac024ba8a2e4f54e21cbca3f6dbbf034b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac024ba8a2e4f54e21cbca3f6dbbf034b">KEY_USER_PORT</a>&#160;&#160;&#160;(GPIOA)</td></tr>
<tr class="separator:ac024ba8a2e4f54e21cbca3f6dbbf034b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac18ca23becb6fbf9db39bad55b127977" id="r_ac18ca23becb6fbf9db39bad55b127977"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac18ca23becb6fbf9db39bad55b127977">KEY_USER_PIN</a>&#160;&#160;&#160;(GPIO_PIN_0)</td></tr>
<tr class="separator:ac18ca23becb6fbf9db39bad55b127977"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="enum-members" name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ab6420af507afd2c6a57f725ad69d11cb" id="r_ab6420af507afd2c6a57f725ad69d11cb"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab6420af507afd2c6a57f725ad69d11cb">key_type_e</a> { <a class="el" href="#ab6420af507afd2c6a57f725ad69d11cba8086b8579a3eab3a11c34672527b8103">KEY_USER_TYPE</a>
, <a class="el" href="#ab6420af507afd2c6a57f725ad69d11cbae7c96674990975ac5a27143a3eb4be42">KEY_MAX_TYPE</a>
 }</td></tr>
<tr class="separator:ab6420af507afd2c6a57f725ad69d11cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a640147b8dce97b1a49d8c6de0cdfe8d9" id="r_a640147b8dce97b1a49d8c6de0cdfe8d9"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a640147b8dce97b1a49d8c6de0cdfe8d9">key_result_e</a> { <br />
&#160;&#160;<a class="el" href="#a640147b8dce97b1a49d8c6de0cdfe8d9ab9581e2ba1573b57f3dac5c6c3e3f1ff">KEY_NOT_PRESS</a> = 0
, <a class="el" href="#a640147b8dce97b1a49d8c6de0cdfe8d9a4f8ce83ad6c2a446a085914beec179b3">KEY_SHORT_PRESS</a>
, <a class="el" href="#a640147b8dce97b1a49d8c6de0cdfe8d9a716a6af25c5127f80677c673c29142b2">KEY_LONG_PRESS</a>
, <a class="el" href="#a640147b8dce97b1a49d8c6de0cdfe8d9ae26e139f2d1b9308c197e5ef60ab5e82">KEY_DOUBLE_PRESS</a>
, <br />
&#160;&#160;<a class="el" href="#a640147b8dce97b1a49d8c6de0cdfe8d9a3c6fb309f917fe603431c1ef0055d4ac">KEY_MAX_PRESS</a>
<br />
 }</td></tr>
<tr class="separator:a640147b8dce97b1a49d8c6de0cdfe8d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a236ca3a930ad4e78c2801d93d0c621" id="r_a7a236ca3a930ad4e78c2801d93d0c621"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7a236ca3a930ad4e78c2801d93d0c621">key_event_e</a> { <br />
&#160;&#160;<a class="el" href="#a7a236ca3a930ad4e78c2801d93d0c621af9e21966bc90237a39293a2772ed206b">KEY_IDLE_EVENT</a> = 0
, <a class="el" href="#a7a236ca3a930ad4e78c2801d93d0c621a60594f7014b19b0dc2f4a9d314ea704b">KEY_TRIGGER_EVENT</a>
, <a class="el" href="#a7a236ca3a930ad4e78c2801d93d0c621ace0da6b582f6e10c77205c9b5248bb82">KEY_SHORT_EVENT</a>
, <a class="el" href="#a7a236ca3a930ad4e78c2801d93d0c621a26c3e0aa7573f5cd061fca60cbb6987f">KEY_LONG_EVENT</a>
, <br />
&#160;&#160;<a class="el" href="#a7a236ca3a930ad4e78c2801d93d0c621ad70e00cee64db4a6186bc3d237af4d5e">KEY_DOUBLE_EVENT</a>
, <a class="el" href="#a7a236ca3a930ad4e78c2801d93d0c621ae6b3238d9cad147cb6ed49502ed233f0">KEY_MAX_EVENT</a>
<br />
 }</td></tr>
<tr class="separator:a7a236ca3a930ad4e78c2801d93d0c621"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ac18ca23becb6fbf9db39bad55b127977" name="ac18ca23becb6fbf9db39bad55b127977"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac18ca23becb6fbf9db39bad55b127977">&#9670;&#160;</a></span>KEY_USER_PIN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define KEY_USER_PIN&#160;&#160;&#160;(GPIO_PIN_0)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="key__driver_8h_source.html#l00010">10</a> of file <a class="el" href="key__driver_8h_source.html">key_driver.h</a>.</p>

</div>
</div>
<a id="ac024ba8a2e4f54e21cbca3f6dbbf034b" name="ac024ba8a2e4f54e21cbca3f6dbbf034b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac024ba8a2e4f54e21cbca3f6dbbf034b">&#9670;&#160;</a></span>KEY_USER_PORT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define KEY_USER_PORT&#160;&#160;&#160;(GPIOA)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="key__driver_8h_source.html#l00009">9</a> of file <a class="el" href="key__driver_8h_source.html">key_driver.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="a7a236ca3a930ad4e78c2801d93d0c621" name="a7a236ca3a930ad4e78c2801d93d0c621"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a236ca3a930ad4e78c2801d93d0c621">&#9670;&#160;</a></span>key_event_e</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="#a7a236ca3a930ad4e78c2801d93d0c621">key_event_e</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a7a236ca3a930ad4e78c2801d93d0c621af9e21966bc90237a39293a2772ed206b" name="a7a236ca3a930ad4e78c2801d93d0c621af9e21966bc90237a39293a2772ed206b"></a>KEY_IDLE_EVENT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a7a236ca3a930ad4e78c2801d93d0c621a60594f7014b19b0dc2f4a9d314ea704b" name="a7a236ca3a930ad4e78c2801d93d0c621a60594f7014b19b0dc2f4a9d314ea704b"></a>KEY_TRIGGER_EVENT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a7a236ca3a930ad4e78c2801d93d0c621ace0da6b582f6e10c77205c9b5248bb82" name="a7a236ca3a930ad4e78c2801d93d0c621ace0da6b582f6e10c77205c9b5248bb82"></a>KEY_SHORT_EVENT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a7a236ca3a930ad4e78c2801d93d0c621a26c3e0aa7573f5cd061fca60cbb6987f" name="a7a236ca3a930ad4e78c2801d93d0c621a26c3e0aa7573f5cd061fca60cbb6987f"></a>KEY_LONG_EVENT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a7a236ca3a930ad4e78c2801d93d0c621ad70e00cee64db4a6186bc3d237af4d5e" name="a7a236ca3a930ad4e78c2801d93d0c621ad70e00cee64db4a6186bc3d237af4d5e"></a>KEY_DOUBLE_EVENT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a7a236ca3a930ad4e78c2801d93d0c621ae6b3238d9cad147cb6ed49502ed233f0" name="a7a236ca3a930ad4e78c2801d93d0c621ae6b3238d9cad147cb6ed49502ed233f0"></a>KEY_MAX_EVENT&#160;</td><td class="fielddoc"></td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="key__driver_8h_source.html#l00027">27</a> of file <a class="el" href="key__driver_8h_source.html">key_driver.h</a>.</p>

</div>
</div>
<a id="a640147b8dce97b1a49d8c6de0cdfe8d9" name="a640147b8dce97b1a49d8c6de0cdfe8d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a640147b8dce97b1a49d8c6de0cdfe8d9">&#9670;&#160;</a></span>key_result_e</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="#a640147b8dce97b1a49d8c6de0cdfe8d9">key_result_e</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a640147b8dce97b1a49d8c6de0cdfe8d9ab9581e2ba1573b57f3dac5c6c3e3f1ff" name="a640147b8dce97b1a49d8c6de0cdfe8d9ab9581e2ba1573b57f3dac5c6c3e3f1ff"></a>KEY_NOT_PRESS&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a640147b8dce97b1a49d8c6de0cdfe8d9a4f8ce83ad6c2a446a085914beec179b3" name="a640147b8dce97b1a49d8c6de0cdfe8d9a4f8ce83ad6c2a446a085914beec179b3"></a>KEY_SHORT_PRESS&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a640147b8dce97b1a49d8c6de0cdfe8d9a716a6af25c5127f80677c673c29142b2" name="a640147b8dce97b1a49d8c6de0cdfe8d9a716a6af25c5127f80677c673c29142b2"></a>KEY_LONG_PRESS&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a640147b8dce97b1a49d8c6de0cdfe8d9ae26e139f2d1b9308c197e5ef60ab5e82" name="a640147b8dce97b1a49d8c6de0cdfe8d9ae26e139f2d1b9308c197e5ef60ab5e82"></a>KEY_DOUBLE_PRESS&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a640147b8dce97b1a49d8c6de0cdfe8d9a3c6fb309f917fe603431c1ef0055d4ac" name="a640147b8dce97b1a49d8c6de0cdfe8d9a3c6fb309f917fe603431c1ef0055d4ac"></a>KEY_MAX_PRESS&#160;</td><td class="fielddoc"></td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="key__driver_8h_source.html#l00018">18</a> of file <a class="el" href="key__driver_8h_source.html">key_driver.h</a>.</p>

</div>
</div>
<a id="ab6420af507afd2c6a57f725ad69d11cb" name="ab6420af507afd2c6a57f725ad69d11cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6420af507afd2c6a57f725ad69d11cb">&#9670;&#160;</a></span>key_type_e</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="#ab6420af507afd2c6a57f725ad69d11cb">key_type_e</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ab6420af507afd2c6a57f725ad69d11cba8086b8579a3eab3a11c34672527b8103" name="ab6420af507afd2c6a57f725ad69d11cba8086b8579a3eab3a11c34672527b8103"></a>KEY_USER_TYPE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ab6420af507afd2c6a57f725ad69d11cbae7c96674990975ac5a27143a3eb4be42" name="ab6420af507afd2c6a57f725ad69d11cbae7c96674990975ac5a27143a3eb4be42"></a>KEY_MAX_TYPE&#160;</td><td class="fielddoc"></td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="key__driver_8h_source.html#l00012">12</a> of file <a class="el" href="key__driver_8h_source.html">key_driver.h</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
